package com.pse.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pse.mapper.CrawlerMapper;
import com.pse.service.CrawlerService;

@Service
@Transactional
public class CrawlerServiceImpl implements CrawlerService{

	@Resource
	private CrawlerMapper cmapper;
	
	@Override
	public boolean update(int rid, int aqs) {
		if(cmapper.updatec(rid, aqs)==true)
			return true;
		else return false;
	}

	@Override
	public int query(int locat) {
		// TODO Auto-generated method stub
		return cmapper.querylo(locat);
	}

}
